import request from '@/utils/request'

// 查询LED屏幕消息列表
export function listScreenMessage(query) {
  return request({
    url: '/business/screenMessage/list',
    method: 'get',
    params: query
  })
}

// 查询LED屏幕消息详细
export function getScreenMessage(screenMessageId) {
  return request({
    url: '/business/screenMessage/' + screenMessageId,
    method: 'get'
  })
}

// 新增LED屏幕消息
export function addScreenMessage(data) {
  return request({
    url: '/business/screenMessage',
    method: 'post',
    data: data
  })
}

export function addScreenMessageBatch(data) {
  return request({
    url: '/business/screenMessage/addBatch',
    method: 'post',
    data: data
  })
}

// 修改LED屏幕消息
export function updateScreenMessage(data) {
  return request({
    url: '/business/screenMessage',
    method: 'put',
    data: data
  })
}

// 删除LED屏幕消息
export function delScreenMessage(screenMessageId) {
  return request({
    url: '/business/screenMessage/' + screenMessageId,
    method: 'delete'
  })
}
